package com.wsoft.oss.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

/**
 * 分片上传
 * @Author z001
 * @Date 2024/10/11 18:42
 */
@Data
@Accessors(chain = true)
public class PartUploadQuery {
    public PartUploadQuery(String md5, Integer bucketType, Integer uploadPartCount, MultipartFile filePart,String fileName) {
        this.md5 = md5;
        this.bucketType = bucketType;
        this.uploadPartCount = uploadPartCount;
        this.filePart = filePart;
        this.fileName = fileName;
    }

    @Schema(description = "文件md5值")
    private  String md5;

    @Schema(description = "桶类型")
    private Integer  bucketType;

    @Schema(description = "当前上传的分片Index")
    private Integer uploadPartCount;

    @Schema(description = "分片file")
    private MultipartFile filePart;

    @Schema(description = "文件名称")
    private String fileName;
}
